import { _decorator,Node } from 'cc';

import BaseView from '../../Script/game/BaseView';
// import { luckyBox } from './luckyBox';
import GD from '../../Script/config/GD';
import GDef from '../../Script/config/GDef';
import SdkMgr from '../../Script/tyq3.x/SdkMgr';
import TyqEventMgr from '../../Script/tyq3.x/tyq-event-mgr';
import Tool from '../../Script/tool/Tool';
const { ccclass, property } = _decorator;

@ccclass('preContinue')
export class preContinue extends BaseView {
    @property({
        type: Node
    })
    btn: Node = null;


    onLoad() {
        this.bindButton(this.btn,()=>{
            this.emit(GDef.wdEvent.showEnd);
            this.node.active = false;
        });
    }
    onDisable(){
        Tool.hideGridAD();
        Tool.hideTopGridAD();
    }
}   
